package top.zuli.package01.class15;

import org.junit.Test;

public class Demo6 {
    @Test
    public void StringMethodTest6() {
        String str = "abc";
        String result = str.toUpperCase();
        System.out.println(result);
        System.out.println(str);
        System.out.println(str.substring(1));
        System.out.println(str);
        String result2 = str.replace('c', 'C');
        System.out.println(result2);
        System.out.println(str);
    }
}

/*public class Demo6 {
    @Test
    public void StringMethodTest6() {
        String str = "abc";
        String result = str.toUpperCase();
        System.out.println(result);
        System.out.println(str);
        System.out.println(str.substring(1));
        System.out.println(str);
        String result2 = str.replace('c', 'C');
        System.out.println(result2);
        System.out.println(str);
    }
}*/

/*public class Demo6 {
    @Test
    public void StringMethodTest6() {
        String str = "abc";
        String result = str.toUpperCase();
        System.out.println(result);
        System.out.println(str);
        System.out.println(str.substring(1));
        System.out.println(str);
        String result2 = str.replace('c', 'C');
        System.out.println(result2);
        System.out.println(str);
    }
}*/